import { http } from "@/utils/http";
import httpConfig from "@/utils/http/httpConfig";
const prefix = httpConfig.edu;

/**
 * 获取 轮播广告管理列表
 * @param params
 */
export function CarouselList(params?: Record<string, any>) {
  return http.post(prefix + "/carousel/list", { data: params });
}

/**
 * 添加 轮播广告管理
 * @param params
 * @returns {*}
 */
export function CarouselAdd(params: Record<string, any>) {
  return http.post(prefix + "/carousel", { data: params });
}

/**
 * 修改 轮播广告管理
 * @param params
 * @returns {*}
 */
export function CarouselEdit(params: Record<string, any>) {
  return http.post(prefix + "/carousel/edit", { data: params });
}

/**
 * 删除 轮播广告管理
 * @param params
 * @returns {*}
 */
export function CarouselDelete(params: Record<string, any>) {
  return http.post(prefix + "/carousel/del", { data: params });
}

/**
 * 获取详情 轮播广告管理
 * @param params
 * @returns {*}
 */
export function CarouselDetail(params: any) {
  return http.get(prefix + "/carousel/" + params);
}
